package design.factory.method;

import design.factory.abstrac.Computer;
import design.factory.abstrac.MacBookImpl;
import design.factory.simple.IphoneImpl;
import design.factory.simple.Phone;

/**
 * <p>
 * iphone factory
 * </P>
 *
 * @author dingwen
 * @date 2021.10.22 14:17
 */
public class IphoneFactory implements AbstractFactory {
    @Override
    public Phone makePhone() {
        return new IphoneImpl();
    }

    @Override
    public Computer makeComputer() {
        return new MacBookImpl();
    }
}
